package edu.sctu.practice.class02.liuli.practice.initial02;

/**
 * 局部变量的初始化与赋值
 * Created by Administrator on 2015/10/12.
 */
public class A {
    int y;

    void f() {
        int x = (int) (Math.random() * 100);
        int z;
        if (x > 60) {
            y = 10;
        }
        z = y - x;
        System.out.println("z=" + z);

    }

}

